package com.red.star.macalline.data.mappers;

import com.red.star.macalline.data.core.base.MyMapper;
import com.red.star.macalline.data.entity.AdGroup;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author AMGuo
 * @Description
 * @date 2018/03/26 13:11
 */
public interface AdGroupMapper extends MyMapper<AdGroup> {

	public List<AdGroup> findByMerchantId(@Param("merchantId") Integer merchantId, @Param("status") String status);

	public void updateStatusByMerchantId(@Param("merchantId") Integer merchantId, @Param("status") String status,
	                                     @Param("id") Integer id);

	List<AdGroup> findAllByMerchatId(@Param("adGroup") AdGroup adGroup, @Param("startTime") Date startTime,
	                                 @Param("endTime") Date endTime, @Param("mallCode") String mallCode);
}
